package com.wang.blog.dao;

import com.wang.blog.model.MeArticle;
import com.wang.blog.model.MeArticleBody;
import com.wang.blog.model.MeArticleBodyExample;
import com.wang.blog.ov.ArticleVo;
import com.wang.blog.ov.PageVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * MeArticleBodyDAO继承基类
 */
@Repository
public interface MeArticleBodyDAO extends MyBatisBaseDao<MeArticleBody, Long, MeArticleBodyExample> {

    @Select("select a.* from me_article a left join me_article_tag n on n.article_id = a.id where a.category_id = :categoryId")
    public List<MeArticle> listArticls(ArticleVo articleov,PageVo ov);


}